package com.lantosec.hmrp.modules.category.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.lantosec.hmrp.core.mvc.BaseVO;
import com.lantosec.hmrp.modules.category.entity.AssetsAccessAntenna;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 门禁设备天线定义 VO对象
 * </p>
 *
 * @author AutoCode
 * @since 2020-04-15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="AssetsAccessAntenna对象", description="门禁设备天线定义")
public class AssetsAccessAntennaVO extends BaseVO<AssetsAccessAntenna> {
    private static final long serialVersionUID = 1L;


    public AssetsAccessAntennaVO(AssetsAccessAntenna entity){
        this.antennaId = entity.getAntennaId();
        this.antennaName = entity.getAntennaName();
        this.antennaNo = entity.getAntennaNo();
        this.accessId = entity.getAccessId();
        this.flag = entity.getFlag();
    }

    @Override
    public AssetsAccessAntenna convertToEntity(){
        return new AssetsAccessAntenna(this);
    }


    @ApiModelProperty(value = "门禁设备天线ID")
    private String antennaId;

    @ApiModelProperty(value = "门禁设备天线名称")
    private String antennaName;

    @ApiModelProperty(value = "天线序号")
    private Integer antennaNo;

    @ApiModelProperty(value = "门禁设备ID")
    private String accessId;

    @TableField(exist = false)
    private Integer flag;

}
